package com.lyc.iotdb.common.iot;

/**
 * Iotdb 常量
 *
 * @author kisang
 * @version 1.0
 * @date 2023/11/23 13:53
 */
public class IotdbConstant {
    /**
     * 时间序列常量 Time
     */
    public final static String TIMESERIES_TIMESTAMP = "timestamp";

    /**
     * 时间序列常量 TimeStr
     */
    public final static String TIMESERIES_TIMESTAMPSTR = "timestampStr";

    /**
     * 异常SQL打印模板
     */
    public final static String EXCEPTION_SQL = "[{}]查询列表数据异常,异常SQL:[{}];异常信息:{}";

    /**
     * 统计数量SQL模板
     */
    public final static String COUNT_SQL = "select count({}) from {}";

    /**
     * 正则表达式 匹配 #{key}
     */
    public final static String PATTERN = "\\#\\{(.*?)\\}";

    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     * 升序
     */
    public static final String ASC = "asc";
    /**
     * 星号 *
     */
    public static final String STR_ASTERISK = "*";
}
